<h1>Progi przyznawania statusów</h1>
<br /><br />
<h2>Status VIP</h2>
<form method="post">
{mainoptions title=Lista}
<table cellspacing="0" cellpadding="0" border="0">
	<tr>
		<th>Nazwa</th>
		<th>Punkty</th>
	</tr>
	{foreach from=$vip item=threshold key=action}{if isset($actions.$action)}
	<tr>
		<td>{$actions.$action->getDescription()}</td>
		<td><input type="text" name="vip[{$action}]" value="{$threshold}" size="3"/></td>
	</tr>
	{/if}{/foreach}
	<tr>
		<td><select onchange="$('#newVip').attr('name','vip['+$(this).val()+']')">{foreach from=$actions item=action}<option value="{$action->getId()}">{$action->getDescription()}</option>{/foreach}</select></td>
		<td><input type="text" name="vip[{$firstAction}]" value="" size="3" id="newVip" /></td>
	</tr>
</table>
{/mainoptions}

<h2>Status Expert</h2>

{mainoptions title=Lista}
<table cellspacing="0" cellpadding="0" border="0">
	<tr>
		<th>Nazwa</th>
		<th>Punkty</th>
	</tr>
	{foreach from=$expert item=threshold key=action}{if isset($actions.$action)}
	<tr>
		<td>{$actions.$action->getDescription()}</td>
		<td><input type="text" name="expert[{$action}]" value="{$threshold}" size="3"/></td>
	</tr>
	{/if}{/foreach}
	<tr>
		<td><select onchange="$('#newExpert').attr('name','expert['+$(this).val()+']')">{foreach from=$actions item=action}<option value="{$action->getId()}">{$action->getDescription()}</option>{/foreach}</select></td>
		<td><input type="text" name="expert[{$firstAction}]" value="" size="3" id="newExpert" /></td>
	</tr>
</table>
{/mainoptions}
	<p align="right">
		&nbsp;<br />
		<input type="submit" value="Zapisz" />
	</p>
</form>
